import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import Login from '../views/login.vue'
import Register from '../views/register.vue'
import Index from '../views/index.vue'
import Goods_Register from '../views/good/register.vue'
import Goods_Login from '../views/good/login.vue'
import Business_Management from '../views/good/business_management.vue'
import Order from '../views/order/order.vue'
import Store from '../views/store/store.vue'
import All_Information from '../views/user/all_information.vue'
const routes = [
  {
    path: '/',
    name: 'Login',
    component: Login
  },
  {
    path: '/register',
    name: 'Register',
    component: Register
  },
  {
    path: '/index',
    name: 'Index',
    component: Index
  },
  {
    path: '/goods_register',
    name: 'Goods_Register',
    component: Goods_Register
  },
  {
    path: '/goods_login',
    name: 'Goods_Login',
    component: Goods_Login
  },
  {
    path: '/business_management',
    name: "Business_Management",
    component: Business_Management,
  },
  {
    path: '/order',
    name: 'Order',
    component: Order
  },
  {
    path: '/store',
    name: 'Store',
    component: Store
  },
  {
    path: '/all_Information',
    name: 'All_Information',
    component: All_Information
  },

  // {
  //   path: '/',
  //   name: 'home',
  //   component: HomeView
  // },
  // {
  //   path: '/about',
  //   name: 'about',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  // }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
